package Alarm;

import org.junit.Test;

public class Demo {
	@Test
	public void test1() {
		
		OtherDoor otherDoor = new OtherDoor();
		otherDoor.open();
		otherDoor.close();
		System.out.println("--------------------");
		MyDoor myDoor = new MyDoor();
		myDoor.open();
		myDoor.close();
		myDoor.alarm();
		System.out.println("--------------------");
		MyDianTi myDianTi = new MyDianTi();
		myDianTi.down();
		myDianTi.up();
		myDianTi.alarm();
		System.out.println("--------------------");
		RanQi ranQi = new RanQi();
		ranQi.alarm();
	
	
	}
}
